<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

?>
<div class="tpl-content-wrapper">

    <div class="container-fluid am-cf">
        <div class="row">
            <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                <div class="page-header-heading"><span class="am-icon-home page-header-heading-icon"></span> 网站配置
                    <small>AI Future</small>
                </div>
                <p class="page-header-description">在此处配置网站各项功能</p>
            </div>
            <!--            <div class="am-u-lg-3 tpl-index-settings-button">-->
            <!--                <button type="button" class="page-header-button"><span class="am-icon-paint-brush"></span> 设置</button>-->
            <!--            </div>-->
        </div>

    </div>

    <div class="row-content am-cf">

        <div class="row">

            <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                <div class="widget am-cf">
                    <div class="widget-head am-cf">
                        <div class="widget-title am-fl">网站配置</div>
                        <div class="widget-function am-fr">
                            <a href="javascript:;" class="am-icon-cog"></a>
                        </div>
                    </div>
                    <div class="widget-body am-fr">
                        <?php $form = ActiveForm::begin([
                            'id' => 'login-form',
                            'method' => 'post',
                            'options' => ['class' => "am-form tpl-form-border-form tpl-form-border-br"],
                            'enableClientValidation' => true,
                            'fieldConfig' => [
                                'template' => "<div class=\"col-lg-5\">{input}</div>\n<div class=\"col-lg-3 am-btn-danger\">{error}</div>",
                            ]
                        ]) ?>
                        <div class="am-form-group">
                            <label for="user-name" class="am-u-sm-3 am-form-label">网站标题 <span
                                        class="tpl-form-line-small-title">Title</span></label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($model, 'title')->textInput(['placeholder' => '请输入网站标题', 'class' => 'tpl-form-input'])->label(false) ?>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <label for="user-name" class="am-u-sm-3 am-form-label">网站网址 <span
                                        class="tpl-form-line-small-title">Title</span></label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($model, 'web_url')->textInput(['placeholder' => '在某些地方有用', 'class' => 'tpl-form-input'])->label(false) ?>
                            </div>
                        </div>
                        <!---->
                        <!--                            <div class="am-form-group">-->
                        <!--                                <label for="user-email" class="am-u-sm-3 am-form-label">发布时间 <span-->
                        <!--                                            class="tpl-form-line-small-title">Time</span></label>-->
                        <!--                                <div class="am-u-sm-9">-->
                        <!--                                    <input type="text" class="am-form-field tpl-form-no-bg" placeholder="发布时间"-->
                        <!--                                           data-am-datepicker="" readonly="">-->
                        <!--                                    <small>发布时间为必填</small>-->
                        <!--                                </div>-->
                        <!--                            </div>-->
                        <!---->
                        <!--                            <div class="am-form-group">-->
                        <!--                                <label for="user-phone" class="am-u-sm-3 am-form-label">作者 <span-->
                        <!--                                            class="tpl-form-line-small-title">Author</span></label>-->
                        <!--                                <div class="am-u-sm-9">-->
                        <!--                                    <select data-am-selected="{searchBox: 1}" style="display: none;">-->
                        <!--                                        <option value="a">-The.CC</option>-->
                        <!--                                        <option value="b">夕风色</option>-->
                        <!--                                        <option value="o">Orange</option>-->
                        <!--                                    </select>-->
                        <!---->
                        <!--                                </div>-->
                        <!--                            </div>-->
                        <!---->
                        <!--                            <div class="am-form-group">-->
                        <!--                                <label class="am-u-sm-3 am-form-label">SEO关键字 <span class="tpl-form-line-small-title">SEO</span></label>-->
                        <!--                                <div class="am-u-sm-9">-->
                        <!--                                    <input type="text" placeholder="输入SEO关键字">-->
                        <!--                                </div>-->
                        <!--                            </div>-->
                        <!---->
                        <!--                            <div class="am-form-group">-->
                        <!--                                <label for="user-weibo" class="am-u-sm-3 am-form-label">封面图 <span-->
                        <!--                                            class="tpl-form-line-small-title">Images</span></label>-->
                        <!--                                <div class="am-u-sm-9">-->
                        <!--                                    <div class="am-form-group am-form-file">-->
                        <!--                                        <div class="tpl-form-file-img">-->
                        <!--                                            <img src="assets/img/a5.png" alt="">-->
                        <!--                                        </div>-->
                        <!--                                        <button type="button" class="am-btn am-btn-danger am-btn-sm">-->
                        <!--                                            <i class="am-icon-cloud-upload"></i> 添加封面图片-->
                        <!--                                        </button>-->
                        <!--                                        <input id="doc-form-file" type="file" multiple="">-->
                        <!--                                    </div>-->
                        <!---->
                        <!--                                </div>-->
                        <!--                            </div>-->
                        <!---->
                        <!--                            <div class="am-form-group">-->
                        <!--                                <label for="user-weibo" class="am-u-sm-3 am-form-label">添加分类 <span-->
                        <!--                                            class="tpl-form-line-small-title">Type</span></label>-->
                        <!--                                <div class="am-u-sm-9">-->
                        <!--                                    <input type="text" id="user-weibo" placeholder="请添加分类用点号隔开">-->
                        <!--                                    <div>-->
                        <!---->
                        <!--                                    </div>-->
                        <!--                                </div>-->
                        <!--                            </div>-->

                        <div class="am-form-group">
                            <label for="doc-select-1" class="am-u-sm-3 am-form-label">开启首页显示？</label>
                            <div class="am-u-sm-9">
                                <label class="am-radio-inline">
                                    <?php echo $form->field($model, 'op_index')->textInput(['type' => "radio", 'value' => '1', 'class' => 'col-sm-6',])->label(false); ?>
                                    开
                                </label>
                                <label class="am-radio-inline">
                                    <?php echo $form->field($model, 'op_index')->textInput(['type' => "radio", 'value' => '0', 'class' => 'col-sm-6',])->label(false); ?>
                                    关
                                </label>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <label for="doc-select-1" class="am-u-sm-3 am-form-label">开启用户登陆？</label>
                            <div class="am-u-sm-9">
                                <label class="am-radio-inline">
                                    <?php echo $form->field($model, 'op_login')->textInput(['type' => "radio", 'value' => '1', 'class' => 'col-sm-6',])->label(false); ?>
                                    开
                                </label>
                                <label class="am-radio-inline">
                                    <?php echo $form->field($model, 'op_login')->textInput(['type' => "radio", 'value' => '0', 'class' => 'col-sm-6',])->label(false); ?>
                                    关
                                </label>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <label for="doc-select-1" class="am-u-sm-3 am-form-label">开启用户注册？</label>
                            <div class="am-u-sm-9">
                                <label class="am-radio-inline">
                                    <?php echo $form->field($model, 'op_register')->textInput(['type' => "radio", 'value' => '1', 'class' => 'col-sm-6',])->label(false); ?>
                                    开
                                </label>
                                <label class="am-radio-inline">
                                    <?php echo $form->field($model, 'op_register')->textInput(['type' => "radio", 'value' => '0', 'class' => 'col-sm-6',])->label(false); ?>
                                    关
                                </label>
                            </div>
                        </div>


                        <div class="am-form-group">
                            <label for="user-intro" class="am-u-sm-3 am-form-label">关闭首页提示文本</label>
                            <div class="am-u-sm-9">
                                <!--                                    <textarea class="" rows="10" id="user-intro" placeholder="请输入文章内容"></textarea>-->
                                <?php echo $form->field($model, 'comment')->textarea(['class' => 'col-sm-6', 'placeholder' => "输入首页显示信息", 'rows' => "10"])->label(false) ?>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <div class="am-u-sm-9 am-u-sm-push-3">
                                <?php echo Html::submitButton('保存修改', ['class' => 'am-btn am-btn-primary', 'name' => 'submit-button']) ?>
                                <!--                                    <button type="button" class="am-btn am-btn-primary tpl-btn-bg-color-success ">确定-->
                                </button>
                            </div>
                        </div>
                        <?php ActiveForm::end(); ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>